package com.test.suanfa;

public class MaoPao {
    public static void main(String[] args){
        int[] arr={1,2,3,6,7,89,77};
        for(int i=0;i<arr.length;i++){
            for(int t=i;t<arr.length;t++){
                int temp=arr[i];
                if(arr[i]<arr[t+1]){
                    arr[i]=arr[t+1];
                }
            }
        }
    }
}
